﻿@model List<CMP.ERP.Admin.ServiceReference1.GoodsInfo>

@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Bootstrap Admin</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link href="~/Scripts/lib/bootstrap/css/bootstrap.css" rel="stylesheet" />

    <link href="~/Scripts/stylesheets/theme.css" rel="stylesheet" />
    <link href="~/Scripts/lib/font-awesome/css/font-awesome.css" rel="stylesheet" />

    <script src="~/Scripts/lib/jquery-1.7.2.min.js"></script>

    <script src="~/Scripts/js1/js/laydate/laydate.js"></script>
    <!-- Demo page code -->
    <style type="text/css">
        #line-chart {
            height: 300px;
            width: 800px;
            margin: 0px auto;
            margin-top: 1em;
        }

        .brand {
            font-family: georgia, serif;
        }

            .brand .first {
                color: #ccc;
                font-style: italic;
            }

            .brand .second {
                color: #fff;
                font-weight: bold;
            }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="lib/html5.js"></script>
    <![endif]-->
    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
    <!--<![endif]-->

    <div class="navbar">
        <div class="navbar-inner">
            <ul class="nav pull-right">

                <li><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">Settings</a></li>
                <li id="fat-menu" class="dropdown">
                    <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-user"></i> @Session["Username"]
                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="dropdown-menu">
                        <li><a tabindex="-1" href="#">My Account</a></li>
                        <li class="divider"></li>
                        <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li>
                        <li class="divider visible-phone"></li>
                        <li><a tabindex="-1" href="/Home/Login">Logout</a></li>
                    </ul>
                </li>

            </ul>
            <a class="brand">
                <span>
                    <img src="~/1234.jpg" style="width:50px;height:50px; border-radius:25px;cursor:pointer" onclick="fun()" />
                </span><span class="first" style="font-family:华文彩云;font-size:22px">千  里  马  </span>&nbsp;&nbsp;<span class="second " style="font-size:22px;">   E R P</span>
            </a>
        </div>
    </div>
    <div class="sidebar-nav">
        <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-dashboard"></i>基础信息</a>
        <ul id="dashboard-menu" class="nav nav-list collapse in">
            <li><a href="/Client/Client_Show">客户管理</a></li>
            <li><a href="/Provider/Provider_show">快递公司</a></li>
            <li><a href="/Experss/Experss_Show">供应商</a></li>
            <li><a href="/Express_mate/Exress_mate_Show">快递匹配</a></li>
            <li><a href="/calendar/calendar_Show">仓库</a></li>
            <li><a href="/Inventory/ShowInventory">库存管理</a></li>
            
        </ul>

        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-briefcase"></i>商品管理</a>
        <ul id="accounts-menu" class="nav nav-list collapse">
            <li><a href="/Blurb/Blurb_Show">商品信息</a></li>
            @*<li><a href="/Brand/Brand_Show">商品品牌</a></li>
            <li><a href="/Category/Category_Show">商品分类</a></li>
            <li><a href="/Report/Report_Show">商品报表</a></li>*@
        </ul>

        <a href="#error-menu" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i>订单管理@*<i class="icon-chevron-up"></i>*@</a>
        <ul id="error-menu" class="nav nav-list collapse">
            <li><a href="/Order/Order_Show">新增订单</a></li>
            <li><a href="/Order/Order_details">订单信息</a></li><li><a href="/Order/SelShow">订单报表</a></li>
        </ul>

        <a href="#legal-menu" class="nav-header" data-toggle="collapse"><i class="icon-legal"></i>采购管理</a>
        <ul id="legal-menu" class="nav nav-list collapse">
            <li><a href="/Procurement/Procurement_Show">采购订单</a></li>
            <li><a href="/Stock/Stock_Show">入库信息</a></li>
        </ul>

        <a href="#leaf-menu" class="nav-header" data-toggle="collapse"><i class="icon-leaf"></i>系统设置</a>
        <ul id="leaf-menu" class="nav nav-list collapse">
            <li><a href="/Shop/Shop_Show">店铺管理</a></li>
            <li><a href="/Account/Account_Show">账号管理</a></li>
        </ul>
        @*<a href="help.html" class="nav-header"><i class="icon-question-sign"></i>店铺管理</a>
            <a href="faq.html" class="nav-header"><i class="icon-comment"></i>账号管理</a>*@
    </div>
    <div class="content">
        <body>

            <div class="header">


                <div class="header-right">


                    <form method="post" action="/Blurb/AddComodity">
                        <div id="modal-container-973559" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:400px; margin-left:-150px;">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                <h3 id="myModalLabel">
                                    商品信息新增系统
                                </h3>
                            </div>
                            <div class="modal-body">

                                <table class="table table-hover table-bordered " style="width:400px;text-align:center;margin:0 auto;border:2px solid #428bca;">

                                    <tbody>
                                        @*<tr>
                                                <td>客户编码:</td>
                                                <td><input type="text" name="Custom_Info_Id" required /></td>
                                            </tr>*@
                                        <tr>
                                            <td>商品名称：</td>
                                            <td>@Html.TextBox("GoodsName")</td>
                                        </tr>

                                        <tr>
                                            <td>备注：</td>
                                            <td>

                                                @Html.TextBox("Remarks")

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>成本：</td>
                                            <td>
                                                @Html.TextBox("StandardCost")
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>批发价格：</td>
                                            <td>
                                                @Html.TextBox("WholesalePrice")
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>仓库</td>
                                            <td>
                                                @Html.DropDownList("StorehouseID")
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>数量：</td>
                                            <td>
                                                @Html.TextBox("InventoryInformationNum")
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>商品类型：</td>
                                            <td>
                                                @Html.DropDownList("TypeID")
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="modal-footer">
                                <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button> <button type="submit" class="btn btn-default"><span class="icon-inbox"></span>保存</button>
                            </div>
                        </div>
                    </form>@*添加*@
                    <form method="post" action="/Blurb">
                        <div id="modal-container-973558" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:400px; margin-left:-150px;">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                <h3 id="myModalLabel">
                                    商品信息修改系统
                                </h3>
                            </div>
                            <div class="modal-body">

                                <table class="table table-hover table-bordered " style="width:400px;text-align:center;margin:0 auto;border:2px solid #428bca;">

                                    <tbody>
                                        @*<tr>
                                                <td>客户编码:</td>
                                                <td><input type="text" name="Custom_Info_Id" required /></td>
                                            </tr>*@
                                        <tr>
                                            <td>商品名称：</td>
                                            <td><input type="text" name="Commodity_Name" required /></td>
                                        </tr>
                                        <tr>
                                            <td>条形码：</td>
                                            <td><input type="text" name="Commodity_number" required /></td>
                                        </tr>
                                        <tr>
                                            <td>重量：</td>
                                            <td>
                                                <input type="text" name="Commodity_Weight" required />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>备注：</td>
                                            <td>
                                                <input type="text" name="Commodity_Remark" required />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>商品类型：</td>
                                            <td>
                                               
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                            </div>
                            <div class="modal-footer">
                                <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button> <button type="submit" class="btn btn-default"><span class="icon-inbox"></span>保存</button>
                            </div>
                        </div>
                    </form>@*修改*@
                </div>
            </div>
            @*<script>
                    function Cus_Add()
                    {
                        $.ajax({
                            Type: "post",
                            Url: "/Custom_Info/Custom_Info_Add",
                            data: {
                                Name: $("input['name=Custom_Info_Name']").val(),
                                Nick: $("input['name=Custom_Info_Nick']")
                            }
                        })
                    }
                </script>*@
            <!-- 顶部 -->

            <div id="middle">

                <div class="Switch"></div>
                <script type="text/javascript">
                    $(document).ready(function (e) {
                        $(".Switch").click(function () {
                            $(".left").toggle();

                        });
                    });
                </script>

                <div class="right" id="mainFrame">

                    <div class="right_cont">
                        <ul class="breadcrumb">
                            当前位置：
                            <a href="/Home/Index">首页</a>
                            <span class="divider">/</span>
                            商品信息
                        </ul>
                        <div class="title_right"><strong>商品信息</strong></div>
                        <div style="width:100%; margin:auto">
                            <div>
                                <form method="get" action="/Blurb/SearchGoods">
                                    <table>
                                        <tr>
                                            <td>商品名称：</td>
                    <td><input type="text" name="GoodsName" placeholder="名称支持多关键字" /></td>
                    <td><button type="submit" class="btn btn-default"><span class="icon-search"></span>查询 </button></td>
                                            <td><button id="modal-973559" href="#modal-container-973559" role="button" type="button" class="btn btn-default" data-toggle="modal"><span class="icon-plus"></span>新增</button></td>
                                        </tr>
                                    </table>
                                </form>
                            </div>
                            <div style="margin-top:20px;">
                                <table class="table  table-hover table-bordered table-striped">
                                    <thead style="text-align:center">
                                        <tr>
                                            <th>商品编码</th>
                                            <th>商品名称</th>
                                            <th>标准售价</th>
                                            <th>进价</th>
                                            <th>备注</th>
                                            <th>类型</th>

                                            <th>货号</th>
                                            <th>单位</th>
                                            <th>吊牌价</th>
                                            <th>长</th>
                                            <th>宽</th>
                                            <th>高</th>
                                            <th>批发价</th>
                                            <th>条码</th>
                                            <th>重量</th>
                                            <th>测试</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach (var item in Model)
                                        {
                                            <tr>
                                                <td>@item.GoodsCoding</td>
                                                <td>@item.GoodsName</td>
                                                <td>@item.StandardCost</td>
                                                <td>@item.WholesalePrice</td>
                                                <td>@item.Remarks</td>
                                                <td>@item.TypeName</td>

                                                <td>@item.ArticleNumber</td>
                                                <td>@item.Unit</td>
                                                <td>@item.CraneQuotation</td>
                                                <td>@item.Long</td>
                                                <td>@item.Wide</td>
                                                <td>@item.High</td>
                                                <td>@item.PurchasePrice</td>
                                                <td>@item.Barcode</td>
                                                <td>@item.Weight</td>
                                                <td>@item.Volume</td>

                                                <td><a href="/Blurb/UptGoodsShow/@item.GoodsID"><span class="icon-edit"></span>修改</a>@*丨<a href="/Blurb/DelComodity/@item.GoodsID" onclick="return confirm('真的要删除吗？')"><span class="icon-remove"></span>删除</a>*@</td>

                                            </tr>
                                        }
                                    </tbody>
                                </table>
                            </div>
                        </div>


                    </div>
                </div>
            </div>

            <!-- 底部 -->
            <div id="footer">版权所有：千里马ERP</div>



            <script>
                !function () {
                    laydate.skin('molv');
                    laydate({ elem: '#Calendar' });
                }();

                function fun() {
                    location.href = '/Home/Index';
                }
            </script>

        </body>
    </div>
</html>
<script src="~/Scripts/lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function () {
        $('.demo-cancel-click').click(function () { return false; });
    });
    function fun() {
        location.href = '/Home/Index';
    }
</script>






